load("@io_bazel_rules_go//go:def.bzl", "go_test")

go_test(
    name = "importintotest4_test",
    timeout = "moderate",
    srcs = [
        "cloud_sdk_test.go",
        "global_sort_test.go",
        "import_summary_test.go",
        "main_test.go",
        "manual_recovery_test.go",
        "split_file_test.go",
    ],
    flaky = True,
    race = "on",
    shard_count = 2,
    deps = [
        "//pkg/config/kerneltype",
        "//pkg/disttask/framework/handle",
        "//pkg/disttask/framework/metering",
        "//pkg/disttask/framework/proto",
        "//pkg/disttask/framework/storage",
        "//pkg/disttask/framework/taskexecutor/execute",
        "//pkg/disttask/framework/testutil",
        "//pkg/disttask/importinto",
        "//pkg/executor/importer",
        "//pkg/importsdk",
        "//pkg/kv",
        "//pkg/lightning/config",
        "//pkg/lightning/mydump",
        "//pkg/planner/core",
        "//pkg/session",
        "//pkg/testkit",
        "//pkg/testkit/testfailpoint",
        "//tests/realtikvtest",
        "//tests/realtikvtest/testutils",
        "@com_github_apache_arrow_go_v18//parquet",
        "@com_github_apache_arrow_go_v18//parquet/schema",
        "@com_github_data_dog_go_sqlmock//:go-sqlmock",
        "@com_github_fsouza_fake_gcs_server//fakestorage",
        "@com_github_golang_snappy//:snappy",
        "@com_github_klauspost_compress//zstd",
        "@com_github_stretchr_testify//require",
        "@com_github_stretchr_testify//suite",
        "@com_github_tikv_client_go_v2//util",
        "@com_github_tikv_pd_client//opt",
        "@org_uber_go_atomic//:atomic",
    ],
)
